package com.zkingsoft.laqeelin.bean;

import java.util.Date;

import net.sf.json.JSONObject;

import com.matrix.core.pojo.EntityDTO;
import com.matrix.core.tools.StringUtils;
import com.matrix.core.anotations.Extend;
import com.zkingsoft.common.bean.EntityDTOExt;
import com.zkingsoft.tools.ImageMerge;

/**
 * @description (助力活动表)
 * @author 何明
 * @date 2018-09-11 10:25
 */
public class BizHelpActivity  extends EntityDTOExt{
	@Extend
	private static final long serialVersionUID = 1L; 

	
	/**
	 * 活动ID
	 */
	private String  hacId;
			
	
	/**
	 * 主键
	 */
	private Long  actId;
			
	
	/**
	 * 活动名称
	 */
	private String  hacName;
			
	
	/**
	 * 价格
	 */
	private String  hacPrice;
			
	
	/**
	 * 助力数量
	 */
	private Integer  hacNum;
			
	
	/**
	 * 头部图片
	 */
	private String  hacHeadImg;
		
	/**
	 * 海报
	 */
	private String hacPosterImg;
	


	/**
	 * 二维码位置
	 */
	private String  codePosition;
	
	
	/**
	 * 背景图片
	 */
	private String  hacBackgroundImg;
			
	
	/**
	 * 活动图片
	 */
	private String  hacImgs;
			
	
	/**
	 * 活动介绍
	 */
	private String  hacIntroduce;
			
	
	/**
	 * 失效时间
	 */
	private Date  hacEndTime;
			
	
	/**
	 * 助力奖品
	 */
	private String  helpPrize;
			
	
	/**
	 * 分享奖品
	 */
	private String  sharePrize;
			
	
	/**
	 * 二维码
	 */
	private String  hacQrcode;
			
	
	/**
	 * 状态(1:保存 2：发布 3：下架 4：删除)
	 */
	private Integer  hacStatus;
			
	
	/**
	 * 小标题1
	 */
	private String  hacTitle1;
			
	
	/**
	 * 小标题2
	 */
	private String  hacTitle2;
			
	
	/**
	 * 小标题3
	 */
	private String  hacTitle3;
			
	
	/**
	 * 备注
	 */
	private String  hacRemark;
			
	/**
	 * 助力奖品对象
	 */
	@Extend
	private BizPrize bizHelpPrize;
			
	
	/**
	 * 分享奖品对象
	 */
	@Extend
	private BizPrize   bizSharePrize;

	/**
	 * 发布数量
	 */
	@Extend
	private int num;
	
	/**
	 * 二维码位置大小对象
	 */
	@Extend
	private CodePosition   bizCodePosition;
	
	public String getCodePosition() {
		return codePosition;
	}

	public void setCodePosition(String codePosition) {
		this.codePosition = codePosition;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public String getHacPosterImg() {
		return hacPosterImg;
	}

	public void setHacPosterImg(String hacPosterImg) {
		this.hacPosterImg = hacPosterImg;
	}

	public BizPrize getBizHelpPrize() {
		if(StringUtils.isNotBlank(this.helpPrize)){
			bizHelpPrize=(BizPrize) JSONObject.toBean(JSONObject.fromObject(this.helpPrize), BizPrize.class);
		}
		return bizHelpPrize;
	}

	public CodePosition getBizCodePosition() {
		if(StringUtils.isNotBlank(this.codePosition)){
			bizCodePosition=(CodePosition) JSONObject.toBean(JSONObject.fromObject(this.codePosition), CodePosition.class);
		}
		return bizCodePosition;
	}

	public void setBizCodePosition(CodePosition bizCodePosition) {
		this.bizCodePosition = bizCodePosition;
	}

	public void setBizHelpPrize(BizPrize bizHelpPrize) {
		this.bizHelpPrize = bizHelpPrize;
	}

	public BizPrize getBizSharePrize() {
		if(StringUtils.isNotBlank(this.sharePrize)){
			bizSharePrize=(BizPrize) JSONObject.toBean(JSONObject.fromObject(this.sharePrize), BizPrize.class);
		}
		return bizSharePrize;
	}

	public void setBizSharePrize(BizPrize bizSharePrize) {
		this.bizSharePrize = bizSharePrize;
	}

	public String getHacId() {
			if(hacId==null){
			return "";
   		}
		
		return hacId;
	}
   	
   	public void setHacId(String hacId) {
		this.hacId=hacId;
	}
   	

	public Long getActId() {
		
		return actId;
	}
   	
   	public void setActId(Long actId) {
		this.actId=actId;
	}
   	

	public String getHacName() {
			if(hacName==null){
			return "";
   		}
		
		return hacName;
	}
   	
   	public void setHacName(String hacName) {
		this.hacName=hacName;
	}
   	

	public String getHacPrice() {
			if(hacPrice==null){
			return "";
   		}
		
		return hacPrice;
	}
   	
   	public void setHacPrice(String hacPrice) {
		this.hacPrice=hacPrice;
	}
   	

	public Integer getHacNum() {
		
		return hacNum;
	}
   	
   	public void setHacNum(Integer hacNum) {
		this.hacNum=hacNum;
	}
   	

	public String getHacHeadImg() {
			if(hacHeadImg==null){
			return "";
   		}
		
		return hacHeadImg;
	}
   	
   	public void setHacHeadImg(String hacHeadImg) {
		this.hacHeadImg=hacHeadImg;
	}
   	

	public String getHacBackgroundImg() {
			if(hacBackgroundImg==null){
			return "";
   		}
		
		return hacBackgroundImg;
	}
   	
   	public void setHacBackgroundImg(String hacBackgroundImg) {
		this.hacBackgroundImg=hacBackgroundImg;
	}
   	

	public String getHacImgs() {
			if(hacImgs==null){
			return "";
   		}
		
		return hacImgs;
	}
   	
   	public void setHacImgs(String hacImgs) {
		this.hacImgs=hacImgs;
	}
   	

	public String getHacIntroduce() {
			if(hacIntroduce==null){
			return "";
   		}
		
		return hacIntroduce;
	}
   	
   	public void setHacIntroduce(String hacIntroduce) {
		this.hacIntroduce=hacIntroduce;
	}
   	

	public Date getHacEndTime() {
		
		return hacEndTime;
	}
   	
   	public void setHacEndTime(Date hacEndTime) {
		this.hacEndTime=hacEndTime;
	}
   	

	public String getHelpPrize() {
			if(helpPrize==null){
			return "";
   		}
		
		return helpPrize;
	}
   	
   	public void setHelpPrize(String helpPrize) {
		this.helpPrize=helpPrize;
	}
   	

	public String getSharePrize() {
			if(sharePrize==null){
			return "";
   		}
		
		return sharePrize;
	}
   	
   	public void setSharePrize(String sharePrize) {
		this.sharePrize=sharePrize;
	}
   	

	public String getHacQrcode() {
			if(hacQrcode==null){
			return "";
   		}
		
		return hacQrcode;
	}
   	
   	public void setHacQrcode(String hacQrcode) {
		this.hacQrcode=hacQrcode;
	}
   	

	public Integer getHacStatus() {
		
		return hacStatus;
	}
   	
   	public void setHacStatus(Integer hacStatus) {
		this.hacStatus=hacStatus;
	}
   	

	public String getHacTitle1() {
			if(hacTitle1==null){
			return "";
   		}
		
		return hacTitle1;
	}
   	
   	public void setHacTitle1(String hacTitle1) {
		this.hacTitle1=hacTitle1;
	}
   	

	public String getHacTitle2() {
			if(hacTitle2==null){
			return "";
   		}
		
		return hacTitle2;
	}
   	
   	public void setHacTitle2(String hacTitle2) {
		this.hacTitle2=hacTitle2;
	}
   	

	public String getHacTitle3() {
			if(hacTitle3==null){
			return "";
   		}
		
		return hacTitle3;
	}
   	
   	public void setHacTitle3(String hacTitle3) {
		this.hacTitle3=hacTitle3;
	}
   	

	public String getHacRemark() {
			if(hacRemark==null){
			return "";
   		}
		
		return hacRemark;
	}
   	
   	public void setHacRemark(String hacRemark) {
		this.hacRemark=hacRemark;
	}
   	


  
}